version: "3.8"

networks:
  proxy:
    attachable: true
    internal: false
    name: proxy

services:
  production_client:
    build:
      dockerfile: Dockerfile
    image: ${COMPOSE_PROJECT_NAME}
    restart: always
    networks:
      - proxy
    expose:
      - 4000
    labels:
      - traefik.enable=true
      - traefik.docker.network=proxy
      - traefik.http.routers.production_client.entrypoints=websecure
      - traefik.http.routers.production_client.rule=Host(`epic-type.online`)
      - traefik.http.routers.production_client.tls=true
      - traefik.http.routers.production_client.tls.certresolver=letsencrypt
      - traefik.http.routers.production_client.service=production_client_service
      - traefik.http.services.production_client_service.loadbalancer.server.port=4000
